package com.demo.service;


import com.demo.dao.StudentDao;
import com.demo.entity.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collection;

@Service
public class StudentServiceImpl implements StudentDao {

	@Autowired
	private StudentDao mapper;

	@Override
	public Student mySelect(Object id) {
		return mapper.mySelect(id);
	}

	@Override
	public Collection<Student> mySelectAll(Student t) {
		return mapper.mySelectAll(t);
	}

	@Override
	public Student mySelectOne(Student t) {
		return mapper.mySelectOne(t);
	}

	@Override
	public void myInsert(Student t) {
		mapper.myInsert(t);
	}

	/*@Override
	public void myInsertBatch(Collection<Student> t) {
		mapper.myInsertBatch(t);
	}*/

	@Override
	public int myUpdate(Student t) {
		return mapper.myUpdate(t);
	}

	/*@Override
	public int myUpdatePersistent(Student t) {
		return mapper.myUpdatePersistent(t);
	}*/

	@Override
	public int myDelete(Student t) {
		return mapper.myDelete(t);
	}

	@Override
	public int myCount(Student t) {
		return mapper.myCount(t);
	}

}
